Fix picking
authorMatthias Clasen <mclasen@redhat.com>
Wed, 2 Sep 2020 03:23:42 +0000 (23:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 2 Sep 2020 19:20:58 +0000 (15:20 -0400)
My previous change here was too hasty - this code is not
actually transforming points - it is just a convoluted
way to transform the z axis from child coordinates to
the parent.

gtk/gtkwidget.c

index ccc085256c7515db1e55e520734dc0bfb87b3025..18038fd1a466d929f0c97777010480923bce910a 100644 (file)
@@ -9370,8 +9370,8 @@ gtk_widget_do_pick (GtkWidget    *widget,
               gsk_transform_unref (transform);
               graphene_point3d_init (&p0, x, y, 0);
               graphene_point3d_init (&p1, x, y, 1);
-              gsk_matrix_transform_point3d (&inv, &p0, &p0);
-              gsk_matrix_transform_point3d (&inv, &p1, &p1);
+              graphene_matrix_transform_point3d (&inv, &p0, &p0);
+              graphene_matrix_transform_point3d (&inv, &p1, &p1);
               if (fabs (p0.z - p1.z) < 1.f / 4096)
                 continue;